<!--
    @name 召回/服务活动
    @author haoyang.ding
-->
<template>
    <el-dialog>
        <DialogHeader
            slot="title"
            :title="'召回/服务活动'"
        ></DialogHeader>
        <OneTableTemplate
			:dynamicComponents="formInputs"
			:dynamicButtons="formButtons"
			:dynamicTableCols="tableHeader"
		></OneTableTemplate>
    </el-dialog>
</template>

<script>
    import DialogHeader from "@/components/dialogHeader";
	import OneTableTemplate from "@/components/templates/oneTable";
	import { oneTableWithViewTemplateMixins } from "@/components/mixins/oneTableWithViewTemplateMixins";
	export default {
		name: "AppointmentWorkingHoursSelect",
		mixins: [oneTableWithViewTemplateMixins],
		components: {
            OneTableTemplate,
            DialogHeader
		},
		data() {
			return {
				formInputs: [
					{
						compKey: "key0",
						labelName: "车牌号：",
						codeField: "isAssign",
						isMul: false,
						component: () => import("@/components/org/commonInput"),
						type: "inputText",
						isMust: true,
					},
					{
						compKey: "key1",
						labelName: "VIN码：",
						codeField: "saleOrderCode",
						lookuptype: "VE0185",
						component: () => import("@/components/org/LookupValue"),
						type: "dropdownList",
						isMust: true,
					},
					{
						compKey: "key2",
						labelName: "车主姓名：",
						codeField: "saleOrderCode",
						lookuptype: "VE0185",
						component: () => import("@/components/org/LookupValue"),
						type: "dropdownList",
						isMust: true,
					}
				],
				formButtons: [
					{
						compKey: "btnKey0",
						type: "primary",
						size: "small",
						clickEvent: () => this.queryTable(1),
						text: "选择", // 查询
						name: "", // 按钮图标样式
						position: "right",
						fuzzySearch: true,
					},
					{
						compKey: "btnKey1",
						type: "primary",
						size: "small",
						clickEvent: () => this.queryTable(1),
						text: "取消", // 查询
						name: "", // 按钮图标样式
						position: "right",
					}
				],
				tableHeader: [
					// {
					// 	prop: "controlBtn",
					// 	label: "操作", // 操作
					// 	codeField: "orgName",
					// 	width: null,
					// 	align: "center",
					// 	isComponent: true,
					// 	comps: [
					// 		{
					// 			compKey: "propKey1",
					// 			align: "center",
					// 			labelName: "修改",
					// 			codeField: "orgName",
					// 			clickEvent: (index) => {
					// 				this.details(index);
					// 			},
					// 			component: () =>
					// 				import("@/components/org/linkButton"),
					// 		},
					// 	],
					// },
					{
						label: "活动编码",
						prop: "",
					},
					{
						label: "活动主题",
						prop: "",
					},
					{
						label: "活动类型",
						prop: "",
					},
					{
						label: "活动开始时间",
						prop: "",
					},
					{
						label: "活动结束时间",
						prop: "",
					}
				],
			};
		},
	};
</script>

<style lang="scss" scoped>
</style>